package com.retailcloud.inventoryservice.service.impl;

import com.retailcloud.commonutils.entity.ProductAttributeEntity;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.retailcloud.commonutils.utils.PageUtils;
import com.retailcloud.commonutils.utils.Query;

import com.retailcloud.inventoryservice.dao.ProductAttributeDao;
import com.retailcloud.inventoryservice.service.ProductAttributeService;


@Service("productAttributeService")
public class ProductAttributeServiceImpl extends ServiceImpl<ProductAttributeDao, ProductAttributeEntity> implements ProductAttributeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ProductAttributeEntity> page = this.page(
                new Query<ProductAttributeEntity>().getPage(params),
                new QueryWrapper<ProductAttributeEntity>()
        );

        return new PageUtils(page);
    }


}
